import settings

from django.conf.urls.defaults import *

from django.contrib import admin
admin.autodiscover()

from videosoft.apps.news.feeds import *

feeds = {
    'latest': LatestEntries
}

urlpatterns = patterns('',
	(r'^blog/', include('videosoft.apps.blog.urls')),
	(r'^news/', include('videosoft.apps.news.urls')),
	(r'^feedback/', include('videosoft.apps.feedback.urls')),

	(r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', 
		{'feed_dict': feeds}),
		
	(r'^res/(?P<path>.*)$', 'django.views.static.serve', 
		{'document_root': settings.BASE_DIR + '/webroot/res/'}),

	(r'^admin/(.*)', admin.site.root),		
)
